home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-09-16 | 2.5 KB | 66 lines | [TEXT/MPS ] |
- 9/16/92
-
- The tools in this folder may make it easier to build declaration ROM images and then
- download those images to a ROM programmer. Here is a description of the tools in this folder:
-
-
-
- 1. CRCPATCH
-
- Calling syntax from the MPW shell: CRCPatch filename
-
- The CRCPatch tool calculates and inserts the CRC value. It is run after the declaration ROM file
- has been assembled and linked, so that code segment 1 is an image of the declaration ROM. (There
- will be a code segment 0, but this tool doesn't look at it, and the data tool explained below will
- remove the code 0 segment).
-
- The tool calculates the CRC value of code segment 1 of the specified file, and patches the CRC
- value into the proper position in code segment 1. Run the CRCPatch tool after assembling and
- linking the declaration ROM.
-
- CRCPatch calculates the crc value using this algorithm:
-
- Start pointer at bottom of ROM (top of ROM - length)
- Initialize sum to 0 (sum will be the CRC value)
- @1 Rotate sum left by one bit (with ROL.L #1 instruction)
- If pointer is pointing to CRC field in format header, goto @2 (i.e. don't count CRC field)
- Get a byte
- Add byte to sum
- @2 Increment pointer to next data byte
- Goto @1 until done
-
-
-
- 2. DATA TOOL
-
- Calling syntax from the MPW shell: Data ResourceFileName DataFileName
-
- The Data tool opens ResourceFileName, strips off the code 0 segment, and puts the code 1 segment in a
- file named DataFileName. The resulting data file can then be downloaded to a ROM programmer.
- Run the Data tool after doing the CRCPatch.
-
- A typical build sequence would be something like:
-
-
- BuildProgram myDeclROM Assemble, link declaration rom. The resulting resource
- file will contain code segments 0 and 1.
- CRCPatch myDeclROM Calculate CRC on code segment 1 and patch value into code 1.
- Data myDeclROM Final.ROM.Image Copy code segment 1 into data file, creating final rom image.
-
-
-
- 3. TJS COMM APPLICATION
-
- The tjs comm application is a rudimentary data comm program. It can be used to download a
- data file to a ROM burner. The letters TJS are the initials of the engineer who wrote the program.
-
-
-
- Changes to this read me file:
-
- 7/31/92: Simplified this read me memo, because the Designing Cards and Drivers book contains
- the Slot Manager and ROM concepts that were in the earlier memo. Removed the MPW 2.0 versions
- of the tools.
-
- 9/16/92: Added calling syntax, further clarified the need to run CRCPatch, then Data.
-